import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

// 全局的日期过滤器
Vue.filter('getDate',(v)=>{
	// 生成当前时间戳的日期对象
  let oDate = new Date(v);
  // 生成当前时间戳的年月日
  return oDate.getFullYear()+'-'+oDate.getMonth()+1+'-'+oDate.getDate()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
